import {
    post,
    get,
    put,
    Delete,
    form
} from "@/axios/http.js";
import {
    basicApi
} from "@/api/index.js"
//模块数据
export default {
    namespaced: true,
    state: {},
    actions: {
        // 帖子删除-可批量
        answeringDel({}, params) {
            return Delete(basicApi.invitation.answeringDel, params);
        },
        //  学生端提问答疑帖子列表
        getInvitationList({}, params) {
            return get(basicApi.invitation.list, params);
        },
        //  学生端提问答疑帖子列表详情
        getInvitationListContent({}, params) {
            return get(basicApi.invitation.centent, params);
        },
        // 回复帖子
        publish({}, params) {
            return get(basicApi.invitation.publish, params);
        },

        // 提问答疑-发帖子-发表评论
        questions({}, params) {
            return post(basicApi.invitation.questions, params)
        },

        // 提问答疑-点击帖子，点击数加1
        doClickInvition({}, params) {
            return get(basicApi.invitation.doClickInvition, params)
        }
    },
    mutations: {},
}